<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>苹果3元一个，鸭梨2元一个，桃子1元一个。现在想用200元正好买100个水果，在控制台中列出所有可能性。</title>
</head>
<body>
    <script>
        for (var i = 100, j = 0 ; i >= 0 ; i -= 2, j += 1) {
            console.log(`鸭梨${i}个，桃子、苹果各${j}个，一共${2*i + 3*j + j}元`)
        }
    </script>
</body>
</html>